package com.samoiloff.ui.scroll.resize.view {
	import org.bytearray.display.ScaleBitmap;

	import flash.display.Bitmap;
	import flash.display.Sprite;

	/**
	 * @author Samoiloff
	 */
	public class BgView extends Sprite {
		
		private var _bg			: ScaleBitmap;
		
		public function BgView(bmdt:Bitmap) {
			_bg			= new ScaleBitmap(bmdt.bitmapData);
			addChild(_bg);
		}
		
		override public function get width(): Number {
			return _bg.width;
		}

		override public function set width(value: Number): void {
			_bg.width = value;
		}

		
		override public function get height(): Number {
			return _bg.height;
		}

		override public function set height(value: Number): void {
			_bg.height = value;
		}
	}
}
